import 'package:flutter/material.dart';

class AudioCard extends StatelessWidget {
  String image =
      'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-479328cb-417a-467c-9512-83793cb72c1e/0873fa01-cc42-4d76-b37e-a9ae75152a20.jpg';
  String title = '123';
  String name = '123';
  Color backgroundColor = Color.fromARGB(255, 228, 228, 228);
  Function onTap = () {};
  AudioCard({
    Key? key,
    required this.title,
    required this.name,
    required this.image,
    required this.backgroundColor,
    required this.onTap,
  }) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {
        onTap();
      },
      onLongPress: () {},
      child: Row(
        children: [
          Card(
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadiusDirectional.circular(10),
            ),
            clipBehavior: Clip.antiAlias,
            child: Image.network(
              image,
              width: 50,
              height: 50,
              fit: BoxFit.cover,
            ),
          ),
          Column(
            children: [
              Center(
                child: Text(title),
              ),
              Center(
                child: Text(name),
              )
            ],
          )
        ],
      ),
    );
  }
}
